﻿Public Class SohaAli
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim con As OleDb.OleDbConnection = New OleDb.OleDbConnection(ConfigurationManager.ConnectionStrings("MovieConnectionString").ToString())
        con.Open()
        Dim nid As String = Request.QueryString("NewsID").ToString()
        Dim sqlString As String = "select NewsDescription,image from [News]  where NewsID =" & nid
        Dim cmd1 As OleDb.OleDbCommand = New OleDb.OleDbCommand(sqlString, con)
        Dim reader As OleDb.OleDbDataReader = cmd1.ExecuteReader()
        While reader.Read()
            lbNews.Text = reader.Item(0).ToString()
            lbimgactors.ImageUrl = reader.Item(1).ToString()

        End While

        reader.Close()
        cmd1.Dispose()
    End Sub

End Class